<?php

  require_once 'configs/config.php'; 

  // facebook class file
  require 'includes/facebook/facebook.php'; 
  // Create our Application instance (replace this with your appId and secret).
  $facebook = new Facebook(array(
    'appId' => FACEBOOK_APP_ID,
    'secret' => FACEBOOK_SECRET,
    'cookie' => true
  ));                                       

  // smarty library class file
  require_once 'includes/smarty/Smarty.class.php';
  // Create smarty Application instance
  $smarty = new Smarty; 

  // config smarty
  $smarty->force_compile = true;
  // $smarty->debugging = true;
  // $smarty->caching = true;
  // $smarty->cache_lifetime = 120;      

  $smarty->setCacheDir('cache');
  $smarty->setTemplateDir('templates');
  $smarty->setCompileDir('cache/templates_c'); 


  // simple rest client class file
  require_once 'includes/SimpleRestClient.php'; 
  $restclient = new SimpleRestClient (); 
  // add host myproject.com = ip cua tien (123.24.175.4)
  $server_uri = "http://dsproject.com/server/dsgame";

  require_once 'includes/functions.php';  

?>